home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Tools 2
/
Amiga Tools 2.iso
/
tools
/
packer
/
ppack
/
rexx
/
ppdecrunch.ced
Wrap
Text File
|
1995-03-09
|
1KB
|
43 lines
/**************************************************************************************
***** $VER: PPDecrunch 1.1 (13.10.92)
***** Freeware © 1992-1994 by PROXITY SOFTWORKS
***** Author: Boris Folgmann
**************************************************************************************/
/* Global definitions */
OPTIONS RESULTS
/* Constants */
LF = "0A"X
TEMPFILE = "T:PPDecrunch.tmp"
/* PPDecrunch */
ADDRESS "rexx_ced"
/* Get PPID and check */
"Beg Of File"; Status 55; ppid=LEFT(RESULT,4)
IF (ppid ~= "PP20") THEN
DO
Okay1 "No Powerpacker datafile!"
EXIT
END
/* Mark whole file as block, cut and save to packed tempfile */
"Mark block"; "End of file"; "Cut block"; "Save block to file" TEMPFILE".pp"
/* Free blockbuffer (put an 'a' into blockbuffer) */
"Mark block"; Rawkey 32 0; "Cut block"
/* Decrunch packed tempfile and delete it */
ADDRESS COMMAND PPack TEMPFILE".pp" "DECRUNCH";
/* Load tempfile; filename doesn't change! */
"Include file" TEMPFILE
/* Delete tempfile */
ADDRESS COMMAND Delete TEMPFILE
EXIT(0)